<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
        }

        table {
            border-collapse: collapse;
            margin: 20px auto;
            width: 90%;
            max-width: 600px;
        }

        table, th, td {
            border: 1px solid #ddd;
        }

        th, td {
            padding: 10px;
            text-align: center;
        }

        th {
            background-color: #f2f2f2;
        }

        caption {
            font-size: 1.2em;
            font-weight: bold;
            margin-bottom: 10px;
        }

        thead th {
            background-color: #007bff;
            color: #fff;
        }

        tbody tr:nth-child(even) {
            background-color: #f2f2f2;
        }

        tfoot th {
            background-color: #007bff;
            color: #fff;
        }
    </style>
</head>
<body>
    <table>
        <caption>成绩表</caption>
        <thead>
            <tr>
                <th>姓名</th>
                <th>语文</th>
                <th>数学</th>
                <th>总分</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>李明</td>
                <td>99</td>
                <td>99</td>
                <td>198</td>
            </tr>
            <tr>
                <td>李华</td>
                <td>100</td>
                <td>20</td>
                <td>120</td>
            </tr>
        </tbody>
    </table>

    <table>
        <thead>
            <tr>
                <th colspan="5">表单</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td rowspan="2">1</td>
                <td colspan="2">1</td>
                <td rowspan="3" colspan="2">1</td>
            </tr>
            <tr>
                <td>1</td>
                <td>1</td>
            </tr>
            <tr>
                <td rowspan="2">1</td>
                <td>1</td>
                <td>1</td>
            </tr>
            <tr>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
            </tr>
            <tr>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
            </tr>
            <tr>
                <td colspan="3">1</td>
                <td>1</td>
                <td>1</td>
            </tr>
            <tr>
                <td colspan="5">1</td>
            </tr>
        </tbody>
    </table>

    <table>
        <caption>其他表单</caption>
        <thead>
            <tr>
                <th>姓名</th>
                <th>数学</th>
                <th>语文</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th>李铭</th>
                <td>99</td>
                <td>99</td>
            </tr>
            <tr>
                <th>李鸣</th>
                <td>99</td>
                <td>99</td>
            </tr>
            <tr>
                <th>李冥</th>
                <td>99</td>
                <td>99</td>
            </tr>
        </tbody>
        <tfoot>
            <tr>
                <th>平均</th>
                <td>99</td>
                <td>99</td>
            </tr>
        </tfoot>
    </table>
</body>
</html>
